using AiQiuQuan.Sport.Model.Enums;

namespace AiQiuQuan.Sport.WebApi.Entities
{
    /// <summary>
    /// 课程学员
    /// </summary>
    public class CourseStudent : BaseEntity
    {
        /// <summary>
        /// 课程ID
        /// </summary>
        public Guid CourseId { get; set; }

        /// <summary>
        /// 1次数课程、2期间课程、3活动课程
        /// </summary>
        public CourseTypeEnum CourseType { get; set; }

        /// <summary>
        /// 用户学员ID
        /// </summary>
        public Guid UserId { get; set; }

        /// <summary>
        /// 剩余次数/次数课
        /// </summary>
        public int TimesCount { get; set; }

        /// <summary>
        /// 使用次数/次数课
        /// </summary>
        public int UseCount { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTimeOffset? StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTimeOffset? EndTime { get; set; }

        /// <summary>
        /// 是否可用
        /// </summary>
        public bool IsEnable { get; set; }
    }
}
